package org.FaPe3D.core.scenes
{
	import flash.utils.Dictionary;
	
	public class Scenes
	{
		private var _dic:Dictionary = new Dictionary(true);
		private var _defaultScenKey:String = '';
		
		public function Scenes()
		{
			
		}

		public function get scenes():Dictionary
		{
			return _dic;
		}
		
		public function setScenes(key:String, value:*, isDefault:Boolean = false):void
		{
			if(isDefault)
			{
				_defaultScenKey = key;
			}			
			
			_dic[key] = value;
		}
		
		public function getScenes(key:String):*
		{
			return _dic[key];
		}
		
		public function getDefaultScene():*
		{
			return getScenes(_defaultScenKey);
		}
		
		public function changeDefaultScene(key:String):void
		{
			_defaultScenKey = key;
		}
		
	}
}